package com.fr.data.core.db.dialect;

public abstract class TypeUtils
{
  public static final int ARRAY = 2003;
  public static final int BIGINT = -5;
  public static final int BINARY = -2;
  public static final int BLOB = 2004;
  public static final int BOOLEAN = 16;
  public static final int CHAR = 1;
  public static final int CLOB = 2005;
  public static final int DATALINK = 70;
  public static final int DATE = 91;
  public static final int DECIMAL = 3;
  public static final int DISTINCT = 2001;
  public static final int DOUBLE = 8;
  public static final int FLOAT = 6;
  public static final int INTEGER = 4;
  public static final int JAVA_OBJECT = 2000;
  public static final int LONGVARBINARY = -4;
  public static final int LONGVARCHAR = -1;
  public static final int NULL = 0;
  public static final int NUMERIC = 2;
  public static final int OTHER = 1111;
  public static final int REAL = 7;
  public static final int REF = 2006;
  public static final int SMALLINT = 5;
  public static final int STRUCT = 2002;
  public static final int TIME = 92;
  public static final int TIMESTAMP = 93;
  public static final int TINYINT = -6;
  public static final int VARBINARY = -3;
  public static final int VARCHAR = 12;
  public static final int XML = 137;
  public static final int TYPE_SUB_DEFAULT = 1;
  public static final int TYPE_SUB_IGNORECASE = 4;
  static final int[][] ALL_TypeUtils = { { 2003, 1 }, { -5, 1 }, { -2, 1 }, { 2004, 1 }, { 16, 1 }, { 1, 1 }, { 2005, 1 }, { 70, 1 }, { 91, 1 }, { 3, 1 }, { 2001, 1 }, { 8, 1 }, { 6, 1 }, { 4, 1 }, { 2000, 1 }, { -4, 1 }, { -1, 1 }, { 0, 1 }, { 2, 1 }, { 1111, 1 }, { 7, 1 }, { 2006, 1 }, { 5, 1 }, { 2002, 1 }, { 92, 1 }, { 93, 1 }, { -6, 1 }, { -3, 1 }, { 12, 1 }, { 12, 4 }, { 137, 1 } };
  static final int SQL_CHARACTER = 1;
  static final int SQL_CHAR = 1;
  static final int SQL_NUMERIC = 2;
  static final int SQL_DECIMAL = 3;
  static final int SQL_DEC = 3;
  static final int SQL_INTEGER = 4;
  static final int SQL_INT = 4;
  static final int SQL_SMALLINT = 5;
  static final int SQL_FLOAT = 6;
  static final int SQL_REAL = 7;
  static final int SQL_DOUBLE = 8;
  static final int SQL_CHARACTER_VARYING = 12;
  static final int SQL_CHAR_VARYING = 12;
  static final int SQL_VARCHAR = 12;
  static final int SQL_BOOLEAN = 16;
  static final int SQL_USER_DEFINED_TYPE = 17;
  static final int SQL_ROW = 19;
  static final int SQL_REF = 20;
  static final int SQL_BIGINT = 25;
  static final int SQL_BINARY_LARGE_OBJECT = 30;
  static final int SQL_BLOB = 30;
  static final int SQL_CHARACTER_LARGE_OBJECT = 40;
  static final int SQL_CLOB = 40;
  static final int SQL_ARRAY = 50;
  static final int SQL_MULTISET = 55;
  static final int SQL_DATE = 91;
  static final int SQL_TIME = 92;
  static final int SQL_TIMESTAMP = 93;
  static final int SQL_TIME_WITH_TIME_ZONE = 94;
  static final int SQL_TIMESTAMP_WITH_TIME_ZONE = 95;
  static final int SQL_INTERVAL_YEAR = 101;
  static final int SQL_INTERVAL_MONTH = 102;
  static final int SQL_INTERVAL_DAY = 103;
  static final int SQL_INTERVAL_HOUR = 104;
  static final int SQL_INTERVAL_MINUTE = 105;
  static final int SQL_INTERVAL_SECOND = 106;
  static final int SQL_INTERVAL_YEAR_TO_MONTH = 107;
  static final int SQL_INTERVAL_DAY_TO_HOUR = 108;
  static final int SQL_INTERVAL_DAY_TO_MINUTE = 109;
  static final int SQL_INTERVAL_DAY_TO_SECOND = 110;
  static final int SQL_INTERVAL_HOUR_TO_MINUTE = 111;
  static final int SQL_INTERVAL_HOUR_TO_SECOND = 112;
  static final int SQL_INTERVAL_MINUTE_TO_SECOND = 113;
  static final int SQL_BIT_VARYING = 15;
  static final int SQL_DATALINK = 70;
  static final int SQL_UDT = 17;
  static final int SQL_UDT_LOCATOR = 18;
  static final int SQL_BLOB_LOCATOR = 31;
  static final int SQL_CLOB_LOCATOR = 41;
  static final int SQL_ARRAY_LOCATOR = 51;
  static final int SQL_MULTISET_LOCATOR = 56;
  static final int SQL_ALL_TypeUtils = 0;
  static final int SQL_DATETIME = 9;
  static final int SQL_INTERVAL = 10;
  static final int SQL_XML = 137;
  static final int SQL_DISTINCT = 1;
  static final int SQL_SCTRUCTURED = 2;
  public static final int VARCHAR_IGNORECASE = 100;

  public static String getTypeName(int paramInt)
  {
    switch (paramInt)
    {
    case 2003:
      return "ARRAY";
    case -5:
      return "BIGINT";
    case -2:
      return "BINARY";
    case 2004:
      return "BLOB";
    case 16:
      return "BOOLEAN";
    case 1:
      return "CHAR";
    case 2005:
      return "CLOB";
    case 70:
      return "DATALINK";
    case 91:
      return "DATE";
    case 3:
      return "DECIMAL";
    case 2001:
      return "DISTINCT";
    case 8:
      return "DOUBLE";
    case 6:
      return "FLOAT";
    case 4:
      return "INTEGER";
    case 2000:
      return "JAVA_OBJECT";
    case -4:
      return "LONGVARBINARY";
    case -1:
      return "LONGVARCHAR";
    case 0:
      return "NULL";
    case 2:
      return "NUMERIC";
    case 1111:
      return "OTHER";
    case 7:
      return "REAL";
    case 2006:
      return "REF";
    case 5:
      return "SMALLINT";
    case 2002:
      return "STRUCT";
    case 92:
      return "TIME";
    case 93:
      return "TIMESTAMP";
    case -6:
      return "TINYINT";
    case -3:
      return "VARBINARY";
    case 12:
      return "VARCHAR";
    case 100:
      return "VARCHAR_IGNORECASE";
    case 137:
      return "XML";
    }
    return null;
  }
}